home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / os2 / vbbs2_b1.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1993-05-05  |  2KB  |  95 lines

  1. @echo off
  2. cls
  3. ren 0.nf %1.nf
  4. ren .nf 0.nf
  5. ren %1.nf 1.nf
  6. ren 0.nfl %2.nfl
  7. ren .nfl 0.nfl
  8. ren %2.nfl 1.nfl
  9. cls
  10. if not exist 1.nf goto nodrive
  11. if not exist 1.nfl goto nodrive
  12. ren 1.nf 0.nf
  13. ren 1.nfl 0.nfl
  14. if exist %1:\%2\bbs.exe goto dosup
  15. if exist %1:\%2\main.cfg goto update
  16. if exist %1:\%2\vbbs.exe goto update
  17. if exist %1:\%2\database.cfg goto update
  18. goto new
  19. :update
  20. cls
  21. echo.
  22. echo.
  23. echo.
  24. echo                    UPDATING EXISTING INSTALLATION......
  25. echo.
  26. echo.
  27. unz os2stuff.vbs -snfw -o *.exe %1:\%2
  28. unz os2stuff.vbs -snfw -o readme.cmd %1:\%2
  29. unz os2stuff.vbs -snfw -o *.dif %1:\%2
  30. %1:
  31. cd\%2
  32. goto donezip
  33. :dosup
  34. cls
  35. echo.
  36. echo.
  37. echo.
  38. echo                   UPDATING EXISTING DOS INSTALLATION......
  39. echo.
  40. echo.
  41. del %1:\%2\bbs.exe
  42. unz os2stuff.vbs -snfw -o *.exe %1:\%2
  43. unz os2stuff.vbs -snfw -o *.cmd %1:\%2
  44. unz os2stuff.vbs -snfw -o *.dif %1:\%2
  45. %1:
  46. cd\%2
  47. goto donezip
  48. :new
  49. cls
  50. echo.
  51. echo.
  52. echo.
  53. echo                     NEW INSTALLATION IN PROGRESS......
  54. echo.
  55. echo.
  56. md %1:\%2
  57. md %1:\%2\temp
  58. md %1:\%2\sysop
  59. md %1:\%2\data
  60. md %1:\%2\misc
  61. unz os2stuff.vbs -d -snfw  %1:\%2
  62. %1:
  63. cd\%2
  64. vnet /a networkid=1
  65. vcom v\start
  66. cls
  67. goto donezip
  68. :donezip
  69. echo.
  70. echo.
  71. echo  Please Review all VCONFIG Settings NOW
  72. echo.
  73. echo.
  74. vconfig
  75. cls
  76. echo.
  77. call readme
  78. type mail_reg.os2 |more
  79. goto end
  80. :nodrive
  81. ren .nf 0.nf
  82. ren .nfl 0.nfl
  83. cls
  84. echo.
  85. echo.
  86. echo.
  87. echo      Enter the Drive letter followed by the directory
  88. echo      in which you want your VBBS-OS/2 to reside - example:
  89. echo.
  90. echo                          INSTALL C VBBS2
  91. echo.
  92. echo                NOT       INSTALL C:\VBBS2
  93. echo.
  94. :end
  95.